package com.xuwenjin.annotation;

import java.lang.annotation.*;

public class Test02 {
    @MyAnno
    void get1(){

    }
}

//Target
@Target(value = {ElementType.METHOD,ElementType.FIELD})
//一般都是runtime,表示注解在什么地方可以生效,runtime>class>source
@Retention(value = RetentionPolicy.RUNTIME)
//是否将注解生成在javaDoc中
@Documented
//子类可以继承父类的注解
@Inherited
 @interface MyAnno{

 }